home *** CD-ROM | disk | FTP | other *** search
- var KC_ESCAPE = 27;
- var KC_RETURN = 13;
- var APPCAP_INSTALL = 0x0001;
- var APPCAP_UNINSTALL = 0x0002;
- var APPCAP_MODIFY = 0x0004;
- var APPCAP_REPAIR = 0x0008;
- var APPCAP_UPGRADE = 0x0010;
- var APPCAP_CANGETSIZE = 0x0020;
- var APPCAP_MODIFYREMOVE = 0x0080;
- var APPCAP_ADDLATER = 0x0100;
- var APPCAP_UNSCHEDULE = 0x0200;
- function ApplyExtraStyles(tblElem, bFocus)
- {
- var szFocusClass;
- if (bFocus)
- szFocusClass = "Focus";
- else
- szFocusClass = "";
- var tblProps = tblElem.all('idTblExtendedProps');
- if (tblProps)
- {
- tblProps.className = szFocusClass;
- }
- var rganchor = tblElem.all.tags("A");
- var canchor = rganchor.length;
- for (i = 0; i < canchor; i++)
- {
- rganchor[i].className = szFocusClass;
- }
- }
- function Dso_GetCtl(szDso)
- {
- return g_docAll.idCtlAppsDso;
- }
- function Dso_GetRecordset(szDso)
- {
- return g_docAll.idCtlAppsDso.namedRecordset(szDso);
- }
- function Dso_Sort(szDso, szKey)
- {
- g_docAll.idCtlAppsDso.Sort = szKey;
- g_docAll.idCtlAppsDso.Reset(szDso);
- }
- function Dso_Filter(szDso, szFilter)
- {
- g_docAll.idCtlAppsDso.Category = szFilter;
- g_docAll.idCtlAppsDso.Reset(szDso);
- }
- function _SetPubWaitingFeedback()
- {
- var L_RetrievingApps_Text = "Searching the network for available programs...";
- g_docAll.idAddListbox.feedBack = L_RetrievingApps_Text;
- }
- function Dso_Refresh(szDso)
- {
- g_docAll.idCtlAppsDso.Dirty = true;
- if ("Add" == szDso)
- _SetPubWaitingFeedback();
- g_docAll.idCtlAppsDso.Reset(szDso);
-
-
- }
- function Dso_FeedbackIfEmpty(szDso, idListbox, szEmptyFeedback)
- {
- var rs = Dso_GetRecordset(szDso);
- if (rs && rs.state != 0 && rs.RecordCount > 0)
- idListbox.feedBack = "";
- else
- idListbox.feedBack = szEmptyFeedback;
- }
-